package p270jp.pxv.android.comment.domain.model;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.p024v4.media.C0261e;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.commonObjects.model.PixivComment;
import p270jp.pxv.android.legacy.model.PixivWork;
import p325m0.MutabilityOwnership;

/* compiled from: CommentType.kt */
/* renamed from: jp.pxv.android.comment.domain.model.CommentType */
/* loaded from: classes2.dex */
public abstract class CommentType implements Parcelable {

    /* compiled from: CommentType.kt */
    /* renamed from: jp.pxv.android.comment.domain.model.CommentType$Comment */
    /* loaded from: classes2.dex */
    public static final class Comment extends CommentType {
        public static final Parcelable.Creator<Comment> CREATOR = new C4198a();

        /* renamed from: a */
        public final PixivWork f18905a;

        /* compiled from: CommentType.kt */
        /* renamed from: jp.pxv.android.comment.domain.model.CommentType$Comment$a */
        /* loaded from: classes2.dex */
        public static final class C4198a implements Parcelable.Creator<Comment> {
            @Override // android.os.Parcelable.Creator
            public Comment createFromParcel(Parcel parcel) {
                MutabilityOwnership.m3745m(parcel, "parcel");
                return new Comment((PixivWork) parcel.readSerializable());
            }

            @Override // android.os.Parcelable.Creator
            public Comment[] newArray(int i) {
                return new Comment[i];
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public Comment(PixivWork pixivWork) {
            super(null);
            MutabilityOwnership.m3745m(pixivWork, "pixivWork");
            this.f18905a = pixivWork;
        }

        @Override // android.os.Parcelable
        public int describeContents() {
            return 0;
        }

        @Override // java.lang.Object
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof Comment) && MutabilityOwnership.m3749h(this.f18905a, ((Comment) obj).f18905a);
        }

        @Override // java.lang.Object
        public int hashCode() {
            return this.f18905a.hashCode();
        }

        @Override // java.lang.Object
        public String toString() {
            StringBuilder c = C0261e.m12042c("Comment(pixivWork=");
            c.append(this.f18905a);
            c.append(')');
            return c.toString();
        }

        @Override // android.os.Parcelable
        public void writeToParcel(Parcel parcel, int i) {
            MutabilityOwnership.m3745m(parcel, "out");
            parcel.writeSerializable(this.f18905a);
        }
    }

    /* compiled from: CommentType.kt */
    /* renamed from: jp.pxv.android.comment.domain.model.CommentType$Reply */
    /* loaded from: classes2.dex */
    public static final class Reply extends CommentType {
        public static final Parcelable.Creator<Reply> CREATOR = new C4199a();

        /* renamed from: a */
        public final PixivWork f18906a;

        /* renamed from: b */
        public final PixivComment f18907b;

        /* compiled from: CommentType.kt */
        /* renamed from: jp.pxv.android.comment.domain.model.CommentType$Reply$a */
        /* loaded from: classes2.dex */
        public static final class C4199a implements Parcelable.Creator<Reply> {
            @Override // android.os.Parcelable.Creator
            public Reply createFromParcel(Parcel parcel) {
                MutabilityOwnership.m3745m(parcel, "parcel");
                return new Reply((PixivWork) parcel.readSerializable(), (PixivComment) parcel.readSerializable());
            }

            @Override // android.os.Parcelable.Creator
            public Reply[] newArray(int i) {
                return new Reply[i];
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public Reply(PixivWork pixivWork, PixivComment pixivComment) {
            super(null);
            MutabilityOwnership.m3745m(pixivWork, "pixivWork");
            MutabilityOwnership.m3745m(pixivComment, "parentComment");
            this.f18906a = pixivWork;
            this.f18907b = pixivComment;
        }

        @Override // android.os.Parcelable
        public int describeContents() {
            return 0;
        }

        @Override // java.lang.Object
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Reply)) {
                return false;
            }
            Reply reply = (Reply) obj;
            return MutabilityOwnership.m3749h(this.f18906a, reply.f18906a) && MutabilityOwnership.m3749h(this.f18907b, reply.f18907b);
        }

        @Override // java.lang.Object
        public int hashCode() {
            return this.f18907b.hashCode() + (this.f18906a.hashCode() * 31);
        }

        @Override // java.lang.Object
        public String toString() {
            StringBuilder c = C0261e.m12042c("Reply(pixivWork=");
            c.append(this.f18906a);
            c.append(", parentComment=");
            c.append(this.f18907b);
            c.append(')');
            return c.toString();
        }

        @Override // android.os.Parcelable
        public void writeToParcel(Parcel parcel, int i) {
            MutabilityOwnership.m3745m(parcel, "out");
            parcel.writeSerializable(this.f18906a);
            parcel.writeSerializable(this.f18907b);
        }
    }

    public CommentType() {
    }

    public CommentType(DefaultConstructorMarker eVar) {
    }
}
